<?php

namespace app\http\middleware;

class CheckLogin
{
    public function handle($request, \Closure $next)
    {
        if(is_null(session('user_session'))){
            return redirect(url('admin.login'));
        }
        return $next($request);
    }
}
